add_library(logger logger.cpp)
target_link_libraries(logger)

add_library(res_manager res_manager)
target_link_libraries(res_manager logger zlib zziplib)

add_library(scripting scripting.cpp)
target_link_libraries(scripting lua luabind)

add_library(scheduler scheduler.cpp)
if(${CMAKE_SYSTEM} MATCHES "Windows")
  target_link_libraries(scheduler logger)
else()
  target_link_libraries(scheduler logger ${Boost_SYSTEM_LIBRARY})
endif()

add_library(render render.cpp)
target_link_libraries(render)

add_library(object_manager object_manager.cpp)
target_link_libraries(object_manager)

add_library(physics physics.cpp)
target_link_libraries(physics)

add_library(events_sender events_sender.cpp)
target_link_libraries(events_sender event)

add_library(events_dispatcher events_dispatcher.cpp)
target_link_libraries(events_dispatcher event)
